import 'package:equatable/equatable.dart';

enum LotteryType { superLotto, markSix }

// 投注号码
class LotteryTicket extends Equatable {
  final LotteryType type;
  final List<int> frontAreaNumbers;
  final List<int> backAreaNumbers;

  const LotteryTicket({
    required this.type,
    required this.frontAreaNumbers,
    required this.backAreaNumbers,
  });

  @override
  List<Object?> get props => [type, frontAreaNumbers, backAreaNumbers];
}

// 开奖结果
class LotteryResult extends Equatable {
  final LotteryType type;
  final List<int> drawnFrontNumbers;
  final List<int> drawnBackNumbers;

  const LotteryResult({
    required this.type,
    required this.drawnFrontNumbers,
    required this.drawnBackNumbers,
  });

  @override
  List<Object?> get props => [type, drawnFrontNumbers, drawnBackNumbers];
}